package com.pxxy.springboot.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/******************
 * @Author yejf
 * @Description TODO
 */
@Component
@ConfigurationProperties(prefix = "a.b")
public class CustomProp {

    private String x;

    private String y;

    private String z;

    public String getX() {
        return x;
    }

    public void setX(String x) {
        this.x = x;
    }

    public String getY() {
        return y;
    }

    public void setY(String y) {
        this.y = y;
    }

    public String getZ() {
        return z;
    }

    public void setZ(String z) {
        this.z = z;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("CustomProp{");
        sb.append("x='").append(x).append('\'');
        sb.append(", y='").append(y).append('\'');
        sb.append(", z='").append(z).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
